<style>
    table {
        width:100%;
        margin:15px 0;
        border:0;

    }
    th, td {height:25px;line-height:25px;text-align:center;border:1px solid #ccc;}
    th {font-size:16px;}

    #table-1 thead, #table-1 tr {
        border-top-width: 1px;
        border-top-style: solid;
        border-top-color: rgb(230, 189, 189);
    }
    #table-1 {
        border-bottom-width: 1px;
        border-bottom-style: solid;
        border-bottom-color: rgb(230, 189, 189);
    }

    #table-1 td, #table-1 th {
        padding: 5px 10px;
        /*font-size: 12px;*/
        font-family: Verdana;
        color: #337ab7;
    }

    #table-1 th {
        background: #00c0ef4a
    }

</style>
<div class="form-group"  style=" background:url({{ env('APP_URL') .'/' }}home_bj.jpg) no-repeat;background-size:100% 100%;">
    <div style="padding: 3px 2px 0px; margin: 5px auto 0px; font-size: 16px;text-align: center">
        <span style="font-weight:600">学期： </span> {{ $studentData['semester'] }} &nbsp;&nbsp;&nbsp;&nbsp;
        <span style="font-weight:600">班级： </span> {{ $studentData['class'] }}&nbsp;&nbsp;&nbsp;&nbsp;
        <span style="font-weight:600">学号： </span> {{ $studentData['student_id'] }}&nbsp;&nbsp;&nbsp;&nbsp;
        <span style="font-weight:600">姓名： </span> {{ $studentData['name'] }}&nbsp;&nbsp;&nbsp;&nbsp;
        <span style="font-weight:600">座位号：</span> {{ $studentData['seat'] }}&nbsp;&nbsp;&nbsp;&nbsp;
    </div>
    <div style="padding: 3px 2px 0px; margin: 5px auto 0px; font-size: 16px;text-align: center">
        <span style="color: red; font-size: 13px;">*请每位教师和同学认真添加每一项，公平公正评价</span>
    </div>
    <form action="handleCQE" method="post">
        {{csrf_field()}}
        <input type="hidden" name="student_id" value="{{ $studentData['id'] }}">
        <input type="hidden" name="appraiser_type" value="{{ $type }}">
        <table id="table-1">
            <tr>
                <th width="120">维度</th>
                <th width="150">要素</th>
                <th >内容</th>
                <th width="80">最高分</th>
                <th width="80">评价</th>
            </tr>

            @foreach($veidooDatas as $veidooData)
                @for($i = 0; $i < $veidooData['sum'];$i++)
                    <tr>
                    @if($i == 0)
                        <td rowspan="{{$veidooData['sum']}}">{{ $veidooData['veidoo'] }}</td>
                    @endif
                        <td>{{ $veidooData['data'][$i]['element'] }}</td>
                        <td style="text-align: left">{{ $veidooData['data'][$i]['content'] }}</td>
                        <td>{{ $veidooData['data'][$i]['score'] }}</td>
                        <td><input type="number" style="width: 60px" name="{{ $veidooData['data'][$i]['id'] }} " min="0" max="{{ $veidooData['data'][$i]['score'] }}"></td>
                    </tr>
                @endfor
            @endforeach
            <tr>
                <td colspan="2">评语</td>
                <td colspan="3">
                    <div class="form-group" style="padding: 5px 10px"  >
                        <textarea  class="form-control " name="comment" rows="4"></textarea>
                    </div>
                </td>
            </tr>
        </table>

        <div style="float: right;  margin: 2px 10px;">
            <a type="button" class="btn btn-default" onClick="javascript:history.back(-1);">返 &nbsp; 回</a>&nbsp;&nbsp;&nbsp;
            <button type="submit" class="btn btn-primary" >提 &nbsp; 交</button>
        </div>
    </form>
</div>